<#import "/ftl/mainAdmin.ftl" as page>

<@page.mainTemplate styleSheet="comtemuserCss" jsFile="comtemuserJs" current="公司用户">
	 <!-- BEGIN CONTENT BODY -->
            <div class="page-content">
            <!-- BEGIN PAGE HEAD-->
		        <div class="page-head">
		            <!-- BEGIN PAGE TITLE -->
		                <div class="page-title">
		                    <h1>新增公司用户
		                        <small>新增公司用户页面</small>
		                    </h1>
		                </div>
		            <!-- END PAGE TITLE -->
		        </div>
		        <!-- END PAGE HEAD -->
                <!-- BEGIN PAGE BREADCRUMB -->
                <ul class="page-breadcrumb breadcrumb">
                	<li>
		                <a href="${context}/base/index_ftl">首页</a>
		                <i class="fa fa-circle"></i>
		            </li>
                    <li>
                        <span class="active">公司用户</span>
                    </li>
                </ul>
                <!-- END PAGE BREADCRUMB -->
                <!-- BEGIN PAGE BASE CONTENT -->
                <div class="row">
                    <div class="portlet light bordered">
                        <div class="portlet-body form edit-form">
                            <form action="javascript:;" class="horizontal-form createform add-company-user" id="addCom" >
                                <input type="hidden" id="id"  name="id" value="${userVO.id}">
                                <div class="form-body">
                                	<div class="alert alert-danger display-hide">
		                                <button class="close" data-close="alert"></button> 表单含有错误. 请检查. 
		                            </div>
		                            <div class="alert alert-success display-hide">
		                                <button class="close" data-close="alert"></button> 表单验证通过! 
		                            </div>
                                    <div class="row">
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <div class="input-group">
                                                    <label class="input-group-addon">用户ID</label>
                                                    <div class="input-group-content">
                                                    	<input type="text" id="consumer_code" class="form-control" placeholder="用户ID" name="consumer_code" value="${userVO.consumer_code}" readonly>
                                                	</div>
                                                </div>
                                            </div>
                                        </div>
                                        <!--/span-->
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <div class="input-group">
                                                    <label class="input-group-addon">用户名称</label>
                                                	<div class="input-group-content">
                                                    	<input type="text" id="consumer_name" class="form-control" placeholder="★用户名称" name="consumer_name" value="" >
					                                </div>
                                                </div>
                                            </div>
                                        </div>
                                        <!--/span-->
                                    </div>
                                    <div class="row">
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <div class="input-group">
                                                    <label class="input-group-addon">用户类别</label>
                                                    <div class="input-group-content">
                                                    	 <select class="form-control input-inline" name="consumer_type" >
						                                    <option value="">★请选择</option>
						                                    <option value="CONSUMER_WAGE">工资户</option>
						                                    <option value="CONSUMER_MERCHANT">商户</option>
						                                    <option value="CONSUMER_COMPREHEN">综合户</option>
						                                    <option value="CONSUMER_MANAGER">管理员</option>							                                    
						                                </select>
                                                	</div>
                                                </div>
                                            </div>
                                        </div>
                                        <!--/span-->
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <div class="input-group">
                                                    <label class="input-group-addon">办公电话</label>
                                                    <div class="input-group-content">
                                                    	<input type="text" id="office_tel" class="form-control" placeholder="★办公电话" name="office_tel" value=""> 
                                                	</div>
                                                </div>
                                            </div>
                                        </div>
                                        <!--/span-->
                                    </div>
                                    <div class="row">
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <div class="input-group">
                                                    <label class="input-group-addon">联系人</label>
                                                    <div class="input-group-content">
                                                    	<input type="text" id="" class="form-control" placeholder="★联系人" name="contacts" value="">
                                                	</div>
                                                </div>
                                            </div>
                                        </div>
                                        <!--/span-->
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <div class="input-group">
                                                    <label class="input-group-addon">移动电话</label>
                                                    <div class="input-group-content">
                                                    	<input type="text" id="mobile_tel" class="form-control" placeholder="★移动电话" name="mobile_tel" value="">
                                                	</div>
                                                </div>
                                            </div>
                                        </div>
                                        <!--/span-->
                                    </div>
                                    <div class="row">
                                    	<div class="col-md-6">
                                            <div class="form-group">
                                                <div class="input-group">
                                                    <label class="input-group-addon">E-mail</label>
                                                    <div class="input-group-content">
                                                    	<input type="text" id="email" class="form-control" placeholder="★E-mail" name="email" value="">
                                                	</div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <div class="input-group">
                                                    <label class="input-group-addon">建立日期</label>
                                                    <div class="input-group-content">
					                                    <div class="input-group date date-picker" data-date-format="dd-mm-yyyy" >
					                                        <input type="text" class="form-control" readonly="" id="start-time" name="createDate">
					                                        <span class="input-group-btn">
					                                            <button class="btn default" type="button">
					                                                <i class="fa fa-calendar"></i>
					                                            </button>
					                                        </span>
					                                    </div>
					                                </div>
                                                </div>
                                            </div>
                                        </div>
                                        <!--/span-->
                                    </div>
                                    <div class="row">
                                    	<div class="col-md-6">
                                            <div class="form-group">
                                                <div class="input-group">
                                                    <label class="input-group-addon">所属公司</label>
                                                    <div class="input-group-content">
                                                        <select class="form-control input-inline" placeholder="★请输入所属公司" name="company_id" id="comID" >
						                                </select>
					                                </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <div class="input-group">
                                                    <label class="input-group-addon">用户状态</label>
                                                    <div class="input-group-content">
                                                    	 <select class="form-control input-inline" name="data_status" >
						                                    <option value="">请选择</option>
						                                    <option value="DATA_AVAILABLE">启用</option>
						                                    <option value="DATA_DISABLE">停用</option>						                                    
						                                </select>
                                                	</div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-offset-5 col-md-7">
                                            <button type="submit" class="btn green" id="comSave"><#if userVO.id=="">下一步<#else>编辑</#if></button>
                                        </div>
                                    </div>
                                </div>
                            </form>
                            <div class="horizontal-form createform col-md-12 <#if userVO.id=="">hide</#if>" id="comRoleWrap" >
                                <h4 class="form-section">管理公司及角色 </h4>
                                <div class="row">
                                    <div class="col-md-12">
                                        <div class="form-group col-md-8 col-md-offset-2">
                                            <div class="input-group">
                                                <label class="input-group-addon">选择公司机构</label>
                                                <div class="input-group-content">
                                                    <select class="form-control input-inline" name="companyManage">
                                                    </select>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-12">
                                        <div class="form-group col-md-8 col-md-offset-2">
                                            <ul class="list-group" id="comapnyList">
                                            </ul>
                                        </div>
                                    </div>
                                </div>
                                <div class="row" style="text-align:center;">
                                        <a class="btn green" id="orgSave">保存</a>
                                        <a href="${context}/companyconsumer/query_company_consumer_view"class="btn default">返回</a>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <!-- END CONTENT BODY -->

</@page.mainTemplate>